<template>
	<view>
		<view class="" style="background-color: #fff;width: 90%;margin: 0px auto;margin-top: 20rpx;padding: 20rpx;border-radius: 10rpx;">
			<view class="dis disJuC disAl">
				<view class="" style="font-size: 32rpx;text-align: center;">
					总计提现：{{all}}
				</view>
				
			</view>
		
		</view>
		<view class="" style="background-color: #fff;width: 90%;margin: 0px auto;margin-top: 20rpx;padding: 20rpx;border-radius: 10rpx;" v-for="(item,index) in datalist">
			<view class="dis disJuB disAl">
				<view class="" style="font-size: 28rpx;">
					提现金额：{{item.money}}
				</view>
				<view class="" style="font-size: 28rpx;">
					提现状态：<text v-if="item.check_status == 0" style="color: orange;">待审核</text><text v-if="item.check_status == 1" style="color: green;">已通过</text><text v-if="item.check_status == 2" style="color: red;">已驳回</text>
				</view>
			</view>
			<view class="" style="font-size: 26rpx;margin-top: 15rpx;color: #707070">
				操作时间:{{item.createtime}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				all:0,
				datalist:[]
			}
		},
		onLoad() {
			this.getdata()
		},
		methods: {
			getdata(){
				let that = this
				uni.request({
				    url: that.global.url + 'api/clinic/tixian_record',
				    method: "POST",
					header: {
						'token': uni.getStorageSync('token')
					},
				    data: {
						'id': uni.getStorageSync('clinic_id')
				
					},
				    success(res) {
						console.log(res);
				        let result = res.data
						console.log(result);
				        if(result.code == 1){
							that.datalist = result.data.list
							that.all = result.data.all
						}else{
							uni.showToast({
								title: result.msg,
								icon: 'error'
							}) 
				        }
				    }
				})
			}
		}
	}
</script>

<style>
page{
	background-color: #f4f4f4;
}
</style>
